jas.plugin
Interface BasicPluginContext

All Known Subinterfaces:
ExtensionPluginContext, PluginContext

public interface BasicPluginContext

A base class for both ExtensionPluginContext and PluginContext


Method Summary
 void addMenu(javax.swing.JMenu menu)
           
 void error(java.lang.String message)
          Used to popup an error message
 void error(java.lang.String message, java.lang.Throwable detail)
           
 java.io.PrintWriter getPrintStream()
          Printwriter used to write output to the output area
 PageContext installConsole(java.lang.String name, java.awt.Component console)
          Used to add a console to the "Console" area of the GUI
 PageContext installControl(java.lang.String name, java.awt.Component control)
          Used to add a control to the "Tree" area of the GUI
 PageContext installPage(java.lang.String name, java.awt.Component page)
          Used to add a page to the "Window" area of the GUI
 boolean isApplet()
          Used by a plugin to tell if it is running in an Applet or not (added for WIRED, currently always returns false)
 void removeMenu(javax.swing.JMenu menu)
           
 void sendMessage(java.lang.String message)
          Puts a message in the status bar
 

Method Detail

addMenu

public void addMenu(javax.swing.JMenu menu)

removeMenu

public void removeMenu(javax.swing.JMenu menu)

sendMessage

public void sendMessage(java.lang.String message)
Puts a message in the status bar

getPrintStream

public java.io.PrintWriter getPrintStream()
Printwriter used to write output to the output area

error

public void error(java.lang.String message)
Used to popup an error message

error

public void error(java.lang.String message,
                  java.lang.Throwable detail)

installPage

public PageContext installPage(java.lang.String name,
                               java.awt.Component page)
Used to add a page to the "Window" area of the GUI

installControl

public PageContext installControl(java.lang.String name,
                                  java.awt.Component control)
Used to add a control to the "Tree" area of the GUI

installConsole

public PageContext installConsole(java.lang.String name,
                                  java.awt.Component console)
Used to add a console to the "Console" area of the GUI

isApplet

public boolean isApplet()
Used by a plugin to tell if it is running in an Applet or not (added for WIRED, currently always returns false)